package com.fourth.controller;

import com.fourth.service.UBZoneDataService;
import com.ljx.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 蒋一飞
 * @adte 2023/3/2 9:45
 */
@RestController
@RequestMapping("/home/zone")
public class UBZoneDataController {
    @Resource
    private UBZoneDataService ubZoneDataService;

    /**
     * 主页返回分类信息
     * @return
     */
    @GetMapping("/prefecture")
    public Result getZone(){
       return ubZoneDataService.getZoneData();
    }
}
